let isDev = process.env.NODE_ENV == 'development';

//src\router\index.js

import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

import arrRoute from './arrRouter.js';

let arrRouter = new Router({
  routes: arrRoute,
});

arrRouter.beforeEach((to, from, next) => {
  console.log(
    '%c [ to, from, next ]-125',
    'font-size:13px; background:pink; color:#bf2c9f;',
    to,
    from,
    next
  );
  if (to.meta.title) {
    document.title = to.meta.title;
  }

  next();
});

export default arrRouter;
